﻿using Ducu.GLB.Global;
using Ducu.SRV.ViewModel.Shared;
using Ducu.SRV.ViewModel.Task.Shared;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Ducu.SRV.ViewModel.Task
{
    public class HistoryListModel
    {
        public IList<HistoryListItemModel> Items { get; set; }
        public _PagerModel Pager { get; set; }
    }

    public class HistoryListItemModel
    {
        public int TaskId { get; set; }
        public int PlanId { get; set; }
        public _DayModel Title { get; set; }
        public IList<AcceptShowItemModel> History { get; set; }
        public bool ShowReply { get; set; }
        public bool ApplyAccept { get; set; }

        public _ReplyModel Reply { get; set; }

        public bool CanAccept { get; set; }
    }

    public class FulfilShowItemModel
    {
        public LinkModel Proof { get; set; }
        public string Comment { get; set; }
        public DateTime CreateTime { get; set; }
    }

    public class AcceptShowItemModel
    {
        public int Id { get; set; }
        public bool Refused { get; set; }
        public Status Status { get; set; }
        public string MyComment { get; set; }
        public NameIdModel Executor { get; set; }
        public DateTime CreateTime { get; set; }
    }
}
